<?php

namespace App\Kuafu\User\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CodeEnum extends BaseCodeEnum
{

    public const LOGIN_TYPE_PWD = 1;
    public const LOGIN_TYPE_SMS = 2;

    public const KEEP_LOGIN_TIME = 86200;

    const APP_USER_NORMAL_ROLE  = 0;  //正常
    const APP_USER_DELETED_ROLE = 1;  //删除\禁用


    const USER_STATUS_USE  = 0; //启用
    const USER_STATUS_STOP = 1; //禁用

    const USER_STATUS_TEXT = [
        self::USER_STATUS_USE  => '正常',
        self::USER_STATUS_STOP => '离职',
    ];

    //设备状态
    const USER_REGISTRATION_STATUS_ON  = 1; //有效
    const USER_REGISTRATION_STATUS_OFF = 0; //无效
}
